@extends('adminer.admin')
@section("style")

@endsection
@section('content')
    <!-- BEGIN PAGE HEADER-->
    @include("adminer.public.bread")
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN VALIDATION STATES-->
            <div class="widget box blue">
                <div class="widget-title">
                    <h4><i class="icon-reorder"></i>{{$title}}</h4>
                    <span class="tools">
                           <a href="javascript:;" class="icon-chevron-down"></a>
                           <a href="javascript:;" class="icon-remove"></a>
                        </span>
                </div>
                <div class="widget-body form">
                    <div class="alert alert-error" id="error" style="display: none">
                        <button class="close" data-dismiss="alert">×</button>
                        <strong id="error-tip">Error!</strong>
                    </div>
                    <!-- BEGIN FORM-->
                    <form action="{{route("role.update",$info->id)}}" method="post" id="main-form" class="form-horizontal">
                        @method('PUT')
                        <div class="control-group">
                            <label class="control-label">角色名称</label>
                            <div class="controls input-icon">
                                <input type="text" class="span3" name="title" value="{{$info->title}}" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">角色描述</label>
                            <div class="controls input-icon">
                                <textarea class="input-xxlarge" rows="3" name="description">{{$info->description}}</textarea>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">状态</label>
                            <div class="controls">
                                <label class="radio">
                                    <input type="radio" name="status" value="1" @if($info->status ==1) checked @endif />
                                    正常
                                </label>
                                <label class="radio">
                                    <input type="radio" name="status" value="0" @if($info->status ==0) checked @endif />
                                    屏蔽
                                </label>

                            </div>
                        </div>

                        <div class="form-actions">
                            <button type="submit" class="btn btn-success">保存</button>
                            <button type="button" class="btn" onclick="javascript:window.history.back();">放弃</button>
                        </div>
                    </form>
                    <!-- END FORM-->
                </div>
            </div>
            <!-- END VALIDATION STATES-->
        </div>
    </div>
    <!-- END PAGE CONTENT-->
@endsection
@section("script")
    <script>
        jQuery(document).ready(function() {
            // initiate layout and plugins
            App.init();
        });
    </script>
@endsection